﻿using FlyingEye.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.AspNetCore.SignalR;
using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;

namespace FlyingEye
{
    [DependsOn(typeof(AbpAutoMapperModule),
        typeof(AbpAspNetCoreSignalRModule),
    typeof(MonitorServiceEntityFrameworkCoreModule))
    ]
    public class MonitorServiceApplicationModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            this.Configure<AbpAutoMapperOptions>(options =>
            {
                options.AddProfile<ApplicationProfile>();
            });

            context.Services.AddHttpClient();

            base.ConfigureServices(context);
        }
    }
}
